package com.base.controller;

import com.base.service.GitService;
import com.base.utils.Result;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 功能描述:
 *
 * @Author: TianRay
 * @Date: 2021/3/12 12:20
 **/
@RestController
@RequestMapping("sys/git")
public class GiteeController {

    @Autowired
    private GitService gitService;

    @GetMapping("/save")
    @RequiresPermissions("sys:git:save")
    public Result saveGitMsg(){
        return gitService.saveGit();
    }

    @GetMapping("/list")
    public Result getList() {
        return gitService.queryPage();
    }
}
